package cn.qh.seasonal.entity;

import java.util.Date;


import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

import lombok.*;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * (Shift)表实体类
 *
 * @author makejava
 * @since 2021-11-04 09:01:04
 */
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName(value = "Shift")
@SuppressWarnings("serial")
public class Shift extends Model<Shift> {
    @TableId(type = IdType.AUTO)
    private int id; //主键


    @TableField(value = "shiftName")
    private String shiftName;  //班次名字


    @TableField(value = "shiftGcId")
    private String shiftGcId;  //班次对应的工厂id


    @TableField(value = "seasonalId")
    private Integer seasonalId;  //班次对应得时令id


    @TableField(value = "startTime")
    private String startTime;  //班次开始时间


    @TableField(value = "endTime")
    private String endTime;  //班次结束时间


    @TableField(value = "description")
    private String description;  //班次描述


    @TableField(value = "createdTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdTime;  //班次创建时间


    @TableField(value = "updateTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;  //班次更新时间


    @Version
    private int version;   //版本


    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    private int deleted;  //逻辑删除标志

    @TableField(exist = false)
    private String gcName;

    @TableField(exist = false)
    private int parentId;

    @TableField(exist = false)
    private String type;

    @TableField(exist = false)
    private String seasonalName;

    @TableField(value = "isCross")
    private int isCross;

}
